package com.assignwork.dto;

import com.assignwork.entity.WorkerInfo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springblade.core.tool.utils.Func;

import java.util.List;

/**
 * 工人信息(WorkerInfo)DTO
 * @since 2024-02-04 13:07:09
 */
@Data
@ApiModel(value = "WorkerInfoDTO", description = "工人信息")
public class WorkerInfoDTO extends WorkerInfo  {

    private String keyword;

    private String rank;

    public List<Long> getRank() {
        if (Func.isNoneBlank(rank)) {
            return Func.toLongList(rank);
        }
        return null;
    }
}

